﻿
using Feicui.BeautyCRM.IBLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace Bottle.CommunityForum.Factory
{
    public partial class StaticBLLFactory
    {
        public static string AssemblyBllName = System.Configuration.ConfigurationManager.AppSettings["AssemblyBllName"];

        public static IBeauty_MenuService GetCurrentBeauty_MenuService()
        {
            return Assembly.Load(AssemblyBllName).CreateInstance(AssemblyBllName + ".Beauty_MenuService") as IBeauty_MenuService;
        }

        public static IBeauty_RoleService GetCurrentBeauty_RoleService()
        {
            return Assembly.Load(AssemblyBllName).CreateInstance(AssemblyBllName + ".Beauty_RoleService") as IBeauty_RoleService;
        }

        public static IBeauty_TransactionService GetCurrentBeauty_TransactionService()
        {
            return Assembly.Load(AssemblyBllName).CreateInstance(AssemblyBllName + ".Beauty_TransactionService") as IBeauty_TransactionService;
        }

        public static IBeauty_UserService GetCurrentBeauty_UserService()
        {
            return Assembly.Load(AssemblyBllName).CreateInstance(AssemblyBllName + ".Beauty_UserService") as IBeauty_UserService;
        }
    }
}